<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.12"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>emp-toolkit: /Users/wangxiao/git/emp-toolkit/emp-tool/utils/block.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo-full-doxygen.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">emp-toolkit
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.12 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('utils_2block_8h.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#define-members">Macros</a> &#124;
<a href="#typedef-members">Typedefs</a> &#124;
<a href="#func-members">Functions</a> &#124;
<a href="#var-members">Variables</a>  </div>
  <div class="headertitle">
<div class="title">block.h File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &lt;stdio.h&gt;</code><br />
<code>#include &lt;stdlib.h&gt;</code><br />
<code>#include &lt;string.h&gt;</code><br />
<code>#include &lt;stdint.h&gt;</code><br />
<code>#include &lt;stdbool.h&gt;</code><br />
<code>#include &lt;xmmintrin.h&gt;</code><br />
<code>#include &lt;emmintrin.h&gt;</code><br />
<code>#include &lt;smmintrin.h&gt;</code><br />
<code>#include &lt;wmmintrin.h&gt;</code><br />
<code>#include &lt;assert.h&gt;</code><br />
</div>
<p><a href="utils_2block_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:af2ad8a9f0015464df6574a13e598bdb8"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="utils_2block_8h.html#af2ad8a9f0015464df6574a13e598bdb8">zero_block</a>()&#160;&#160;&#160;_mm_setzero_si128()</td></tr>
<tr class="separator:af2ad8a9f0015464df6574a13e598bdb8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a82cb0a8d42708a807a061856813ac9f6"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="utils_2block_8h.html#a82cb0a8d42708a807a061856813ac9f6">one_block</a>()&#160;&#160;&#160;<a class="el" href="utils_2block_8h.html#a371865208357f993ac4e691d54bd806d">makeBlock</a>(0xFFFFFFFFFFFFFFFFULL, 0xFFFFFFFFFFFFFFFFULL)</td></tr>
<tr class="separator:a82cb0a8d42708a807a061856813ac9f6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad2d16c998f79ae3788be69b8e6402b00"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="utils_2block_8h.html#ad2d16c998f79ae3788be69b8e6402b00">getLSB</a>(x)&#160;&#160;&#160;(*((unsigned short *)&amp;x)&amp;1)</td></tr>
<tr class="separator:ad2d16c998f79ae3788be69b8e6402b00"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a371865208357f993ac4e691d54bd806d"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="utils_2block_8h.html#a371865208357f993ac4e691d54bd806d">makeBlock</a>(X,  Y)&#160;&#160;&#160;_mm_set_epi64((__m64)(X), (__m64)(Y))</td></tr>
<tr class="separator:a371865208357f993ac4e691d54bd806d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad8a4fc15f304728d30cc637008591520"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="utils_2block_8h.html#ad8a4fc15f304728d30cc637008591520">INP</a>(x,  y)&#160;&#160;&#160;inp[(x)*ncols/8 + (y)/8]</td></tr>
<tr class="separator:ad8a4fc15f304728d30cc637008591520"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af0f79f5377461c33c6505836d07ba456"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="utils_2block_8h.html#af0f79f5377461c33c6505836d07ba456">OUT</a>(x,  y)&#160;&#160;&#160;out[(y)*nrows/8 + (x)/8]</td></tr>
<tr class="separator:af0f79f5377461c33c6505836d07ba456"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a>
Typedefs</h2></td></tr>
<tr class="memitem:a65abbf31b0a30290189cdb5059b5f785"><td class="memItemLeft" align="right" valign="top">typedef __m128i&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="utils_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a></td></tr>
<tr class="separator:a65abbf31b0a30290189cdb5059b5f785"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aecd842a127367580c336c00cb62411e8"><td class="memItemLeft" align="right" valign="top">typedef __m128i&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="utils_2block_8h.html#aecd842a127367580c336c00cb62411e8">block_tpl</a>[2]</td></tr>
<tr class="separator:aecd842a127367580c336c00cb62411e8"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a939b7dd0e7479964d6fe6984b90dd5ce"><td class="memItemLeft" align="right" valign="top"><a class="el" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="utils_2block_8h.html#a939b7dd0e7479964d6fe6984b90dd5ce">xorBlocks</a> (<a class="el" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a> x, <a class="el" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a> y)</td></tr>
<tr class="separator:a939b7dd0e7479964d6fe6984b90dd5ce"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a26f0bc3cdba6ad8ab7e14bb989f74205"><td class="memItemLeft" align="right" valign="top"><a class="el" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="utils_2block_8h.html#a26f0bc3cdba6ad8ab7e14bb989f74205">andBlocks</a> (<a class="el" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a> x, <a class="el" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a> y)</td></tr>
<tr class="separator:a26f0bc3cdba6ad8ab7e14bb989f74205"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aba00b662d58eb830061c66d369dd61f0"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="utils_2block_8h.html#aba00b662d58eb830061c66d369dd61f0">xorBlocks_arr</a> (<a class="el" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a> *res, const <a class="el" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a> *x, const <a class="el" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a> *y, int nblocks)</td></tr>
<tr class="separator:aba00b662d58eb830061c66d369dd61f0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a867fd60000cddc19fbf070f83ab99de3"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="utils_2block_8h.html#a867fd60000cddc19fbf070f83ab99de3">xorBlocks_arr</a> (<a class="el" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a> *res, const <a class="el" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a> *x, <a class="el" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a> y, int nblocks)</td></tr>
<tr class="separator:a867fd60000cddc19fbf070f83ab99de3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abf49ccf0cdb7c2eb75660b2073bb41d3"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="utils_2block_8h.html#abf49ccf0cdb7c2eb75660b2073bb41d3">xorBlocks_arr2</a> (<a class="el" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a> *res, const <a class="el" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a> *x, const <a class="el" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a> *y, int nblocks)</td></tr>
<tr class="separator:abf49ccf0cdb7c2eb75660b2073bb41d3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5b8d454a7188407c793ba335cc6d38d9"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="utils_2block_8h.html#a5b8d454a7188407c793ba335cc6d38d9">block_cmp</a> (const <a class="el" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a> *x, const <a class="el" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a> *y, int nblocks)</td></tr>
<tr class="separator:a5b8d454a7188407c793ba335cc6d38d9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5d6a5bd7b77a4610c6158487adbe5ba4"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="utils_2block_8h.html#a5d6a5bd7b77a4610c6158487adbe5ba4">isZero</a> (const <a class="el" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a> *b)</td></tr>
<tr class="separator:a5d6a5bd7b77a4610c6158487adbe5ba4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a01d7fb04c12a2a0e2e30c31e0c61d44d"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="utils_2block_8h.html#a01d7fb04c12a2a0e2e30c31e0c61d44d">isOne</a> (const <a class="el" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a> *b)</td></tr>
<tr class="separator:a01d7fb04c12a2a0e2e30c31e0c61d44d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7f0914003ef8a598677701815879c834"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="utils_2block_8h.html#a7f0914003ef8a598677701815879c834">sse_trans</a> (uint8_t *out, uint8_t const *inp, int nrows, int ncols)</td></tr>
<tr class="separator:a7f0914003ef8a598677701815879c834"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="var-members"></a>
Variables</h2></td></tr>
<tr class="memitem:a1a61c940fcdfab9d717ed2f9c27f3602"><td class="memItemLeft" align="right" valign="top">const char&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="utils_2block_8h.html#a1a61c940fcdfab9d717ed2f9c27f3602">fix_key</a> []</td></tr>
<tr class="separator:a1a61c940fcdfab9d717ed2f9c27f3602"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Macro Definition Documentation</h2>
<a id="ad2d16c998f79ae3788be69b8e6402b00"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad2d16c998f79ae3788be69b8e6402b00">&sect;&nbsp;</a></span>getLSB</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define getLSB</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">x</td><td>)</td>
          <td>&#160;&#160;&#160;(*((unsigned short *)&amp;x)&amp;1)</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="ad8a4fc15f304728d30cc637008591520"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad8a4fc15f304728d30cc637008591520">&sect;&nbsp;</a></span>INP</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define INP</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">x, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">y&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td>&#160;&#160;&#160;inp[(x)*ncols/8 + (y)/8]</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a371865208357f993ac4e691d54bd806d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a371865208357f993ac4e691d54bd806d">&sect;&nbsp;</a></span>makeBlock</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define makeBlock</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">X, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">Y&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td>&#160;&#160;&#160;_mm_set_epi64((__m64)(X), (__m64)(Y))</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a82cb0a8d42708a807a061856813ac9f6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a82cb0a8d42708a807a061856813ac9f6">&sect;&nbsp;</a></span>one_block</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define one_block</td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td>&#160;&#160;&#160;<a class="el" href="utils_2block_8h.html#a371865208357f993ac4e691d54bd806d">makeBlock</a>(0xFFFFFFFFFFFFFFFFULL, 0xFFFFFFFFFFFFFFFFULL)</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="af0f79f5377461c33c6505836d07ba456"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af0f79f5377461c33c6505836d07ba456">&sect;&nbsp;</a></span>OUT</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define OUT</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">x, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">y&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td>&#160;&#160;&#160;out[(y)*nrows/8 + (x)/8]</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="af2ad8a9f0015464df6574a13e598bdb8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af2ad8a9f0015464df6574a13e598bdb8">&sect;&nbsp;</a></span>zero_block</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define zero_block</td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td>&#160;&#160;&#160;_mm_setzero_si128()</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">Typedef Documentation</h2>
<a id="a65abbf31b0a30290189cdb5059b5f785"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a65abbf31b0a30290189cdb5059b5f785">&sect;&nbsp;</a></span>block</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef __m128i <a class="el" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="aecd842a127367580c336c00cb62411e8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aecd842a127367580c336c00cb62411e8">&sect;&nbsp;</a></span>block_tpl</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef __m128i block_tpl[2]</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a id="a26f0bc3cdba6ad8ab7e14bb989f74205"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a26f0bc3cdba6ad8ab7e14bb989f74205">&sect;&nbsp;</a></span>andBlocks()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a> andBlocks </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a>&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a>&#160;</td>
          <td class="paramname"><em>y</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a5b8d454a7188407c793ba335cc6d38d9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5b8d454a7188407c793ba335cc6d38d9">&sect;&nbsp;</a></span>block_cmp()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool block_cmp </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a> *&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a> *&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>nblocks</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a01d7fb04c12a2a0e2e30c31e0c61d44d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a01d7fb04c12a2a0e2e30c31e0c61d44d">&sect;&nbsp;</a></span>isOne()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool isOne </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a> *&#160;</td>
          <td class="paramname"><em>b</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a5d6a5bd7b77a4610c6158487adbe5ba4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5d6a5bd7b77a4610c6158487adbe5ba4">&sect;&nbsp;</a></span>isZero()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool isZero </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a> *&#160;</td>
          <td class="paramname"><em>b</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a7f0914003ef8a598677701815879c834"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7f0914003ef8a598677701815879c834">&sect;&nbsp;</a></span>sse_trans()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void sse_trans </td>
          <td>(</td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>out</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t const *&#160;</td>
          <td class="paramname"><em>inp</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>nrows</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>ncols</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a939b7dd0e7479964d6fe6984b90dd5ce"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a939b7dd0e7479964d6fe6984b90dd5ce">&sect;&nbsp;</a></span>xorBlocks()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a> xorBlocks </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a>&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a>&#160;</td>
          <td class="paramname"><em>y</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="aba00b662d58eb830061c66d369dd61f0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aba00b662d58eb830061c66d369dd61f0">&sect;&nbsp;</a></span>xorBlocks_arr() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void xorBlocks_arr </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a> *&#160;</td>
          <td class="paramname"><em>res</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a> *&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a> *&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>nblocks</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a867fd60000cddc19fbf070f83ab99de3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a867fd60000cddc19fbf070f83ab99de3">&sect;&nbsp;</a></span>xorBlocks_arr() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void xorBlocks_arr </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a> *&#160;</td>
          <td class="paramname"><em>res</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a> *&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a>&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>nblocks</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="abf49ccf0cdb7c2eb75660b2073bb41d3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abf49ccf0cdb7c2eb75660b2073bb41d3">&sect;&nbsp;</a></span>xorBlocks_arr2()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void xorBlocks_arr2 </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a> *&#160;</td>
          <td class="paramname"><em>res</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a> *&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a> *&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>nblocks</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">Variable Documentation</h2>
<a id="a1a61c940fcdfab9d717ed2f9c27f3602"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1a61c940fcdfab9d717ed2f9c27f3602">&sect;&nbsp;</a></span>fix_key</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const char fix_key[]</td>
        </tr>
      </table>
</div><div class="memdoc">
<b>Initial value:</b><div class="fragment"><div class="line">= <span class="stringliteral">&quot;\x61\x7e\x8d\xa2\xa0\x51\x1e\x96&quot;</span></div><div class="line"><span class="stringliteral">&quot;\x5e\x41\xc2\x9b\x15\x3f\xc7\x7a&quot;</span></div></div><!-- fragment -->
</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_eec959d81771dc8b1a750b834e1341eb.html">emp-tool</a></li><li class="navelem"><a class="el" href="dir_363cbed62d1567d90b8cbb6bda69428f.html">utils</a></li><li class="navelem"><a class="el" href="utils_2block_8h.html">block.h</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.12 </li>
  </ul>
</div>
</body>
</html>
